﻿
using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Util.DTO.OnlineChat
{
    public class CServiceDTO
    {
        public string Id { set; get; }

        public int ClassId { set; get; }

        public string OnChatRoomId { set; get; }

    }



    public class SRoomDTO
    {
        public string RoomId { set; get; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public string UserId { set; get; }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string HeadImg { set; get; }

        /// <summary>
        /// 用户头像类型
        /// </summary>
        public int? HeadType { set; get; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string RoomName { set; get; }

        /// <summary>
        /// 最新消息时间
        /// </summary>
        public DateTime MSTime { set; get; }

        /// <summary>
        /// 最新消息类型
        /// </summary>
        public int messageType { set; get; }

        /// <summary>
        /// 最新消息内容
        /// </summary>
        public string NewMassage { set; get; }

        /// <summary>
        /// 未读消息数量
        /// </summary>
        public int MSCount { set; get; }
    }


    public class TMessageDTO
    { 
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? STime { get; set; }

        /// <summary>
        /// 消息列表
        /// </summary>
        public List<SMessageDTO> MList { get; set; }
    }

    public class SMessageDTO
    { 
        public string Id { set; get; }
        public int userType { set; get; }
        public string headPortrait { set; get; }
        public int? headType { set; get; }
        public string nickName { set; get; }
        public int messageType { set; get; } = 0;
        public string messageContent { set; get; }
        public DateTime createTime { set; get; }
        public string createTimes { set; get; }
        public string MessageName { set; get; }
        public string MessageSize { set; get; }
        public Boolean? vstate { set; get; }

        /// <summary>
        /// 自动回复模型
        /// </summary>
        public AutoReplyDTO auto_Model { set; get; }

        /// <summary>
        /// 自动回复二级详情模型
        /// </summary>
        public Base_AutoReplyDetailDTOs detailModel { set; get; }
    }

    public class Base_AutoReplyDetailDTOs
    {
        public string contents { set; get; }

        public DateTime createTime { set; get; }

        public string id { set; get; }

        public string replyId { set; get; }
    }


    public class AutoReplyDTO
    {
        public string id { set; get; }
        public string contents { set; get; }
        public string imgURL { set; get; }
        public string link { set; get; }
        public List<ReplyDetailDTO> childList { set; get; }
    }

    public class ReplyDetailDTO
    {
        public string id { set; get; }
        public string contents { set; get; }
        public string imgURL { set; get; }
        public string link { set; get; }
    }
}
